package EnterpriseJavaBeans;

import Domain.DBScore;
import Domain.Ranking;
import Domain.ScoreManager;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;

@Stateless
@LocalBean
public class ScoreBean {
    public Ranking saveScore(String id, int score){
        ScoreManager scoreManager = new DBScore();
        scoreManager.saveScore(id, score);
        return scoreManager.loadRanking();
    }
}
